declare var moment: {
  (date?: any): moment.Moment;
  utc(date?: any): moment.Moment;
  parseZone(date?: any): moment.Moment;
  // ...
};

// 使用 moment
const now = moment();
console.log(now.format('YYYY-MM-DD HH:mm:ss'));